package com.wanxi;

public class SplitStr {
    public static void main(String[] args) {
        String str = "张三,23";
        String[] split = str.split(",");
//        for (int i = 0; i < split.length; i++) {
//            System.out.println(split[i]);
//        }

        Integer age = Integer.valueOf(split[1]);
        Student student = new Student(split[0], age);
    }
}
